home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / include / time.h < prev    next >
C/C++ Source or Header  |  1994-02-01  |  1KB  |  52 lines

  1.  
  2. /*
  3.  * $VER: time.h 1.0 (17.4.93)
  4.  *
  5.  * (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
  6.  */
  7.  
  8. #ifndef TIME_H
  9. #define TIME_H
  10.  
  11. #ifndef STDDEF_H
  12. #include <stddef.h>
  13. #endif
  14.  
  15. typedef unsigned long clock_t;
  16. typedef unsigned long time_t;
  17.  
  18. struct tm {
  19.     int tm_sec;     /*    0-59    */
  20.     int tm_min;     /*    0-59    */
  21.     int tm_hour;    /*    0-23    */
  22.     int tm_mday;    /*    1-31    */
  23.     int tm_mon;     /*    0-11    */
  24.     int tm_year;    /*    n+1900    */
  25.     int tm_wday;    /*    (sun)0-6*/
  26.     int tm_yday;    /*    0-366    */
  27.     int tm_isdst;   /*    daylight svings time flag */
  28. };
  29.  
  30. #define CLK_TCK     50
  31. #define CLOCKS_PER_SEC    CLK_TCK
  32.  
  33. extern char *asctime(const struct tm *);
  34. extern clock_t clock(void);
  35. extern char *ctime(const time_t *);
  36. extern double difftime(time_t, time_t);
  37. extern struct tm *gmtime(const time_t *);
  38. extern struct tm *localtime(const time_t *);
  39. extern time_t mktime(struct tm *);
  40. extern size_t strftime(char *, size_t, const char *, const struct tm *);
  41. extern time_t time(time_t *);
  42.  
  43. /*
  44.  *  non-standard
  45.  */
  46.  
  47. extern struct tm *localtime_tm(const time_t *, struct tm *);
  48.  
  49. #endif
  50.  
  51.  
  52.